
/* Layout */
import Layout from '@/layout'

export const componentRoutes = [
    {
        path: '/trader',   //  添加商户
        component: Layout,
        hidden: true,
        redirect: 'noredirect',
        children: [
            {
                path: 'bunkEdit',
                component: () => import('@/components/trader/BunkEdit.vue'),
                name: 'BunkEdit',
                meta: { title: '添加商户', icon: 'index' }
            },
            {
                path: 'traderList',
                component: () => import('@/components/trader/TraderList.vue'),
                name: 'TraderList',
                meta: { title: '查看商户', icon: 'index' }
            },
            {
                path: 'brandList',
                component: () => import('@/components/trader/BrandList.vue'),
                name: 'BrandList',
                meta: { title: '查看品牌', icon: 'index' }
            },

        ]
    },
    {
        path: '/base',   //  设置
        component: Layout,
        hidden: true,
        redirect: 'noredirect',
        children: [
            {
                path: 'systemSetting',
                component: () => import('@/components/base/SystemSetting.vue'),
                name: 'SystemSetting',
                meta: { title: '库存预警设置', icon: 'index' }
            }
            ]
    },
    {
        path: '/report',   //  商铺管理
        component: Layout,
        hidden: true,
        redirect: 'noredirect',
        children: [
            {
                path: 'purchaseStatistics',
                component: () => import('@/components/report/PurchaseStatistics.vue'),
                name: 'PurchaseStatistics',
                meta: { title: '搜索产品', icon: 'index' }
            },
            {
                path: 'bunkStatistics',
                component: () => import('@/components/report/BunkStatistics.vue'),
                name: 'PurchaseStatistics',
                meta: { title: '商铺报表', icon: 'index' }
            },
            {
                path: 'sellAreaStatistics',
                component: () => import('@/components/report/SellAreaStatistics.vue'),
                name: 'PurchaseStatistics',
                meta: { title: '年份报表', icon: 'index' }
            },
            {
                path: 'sellMonthStatistics',
                component: () => import('@/components/report/SellMonthStatistics.vue'),
                name: 'PurchaseStatistics',
                meta: { title: '月份报表', icon: 'index' }
            }
        ]
    },
    {
        path: '/purchase',   //  采购管理
        component: Layout,
        hidden: true,
        redirect: 'noredirect',
        children: [
            {
                path: 'purchaseDetailList',
                component: () => import('@/components/purchase/PurchaseDetailList.vue'),
                name: 'PurchaseDetailList',
                meta: { title: '采购单检索', icon: 'index' }
            },
            {
                path: 'purchaseList',
                component: () => import('@/components/purchase/PurchaseList.vue'),
                name: 'PurchaseList',
                meta: { title: '采购单管理', icon: 'index' }
            },
            {
                path: 'purchaseSupplier',
                component: () => import('@/components/purchase/PurchaseSupplier.vue'),
                name: 'PurchaseSupplier',
                meta: { title: '供应商管理', icon: 'index' }
            },
        ]
    },
    {
        path: '/stock',   //  库存管理
        component: Layout,
        hidden: true,
        redirect: 'noredirect',
        children: [
            {
                path: 'stockList',
                component: () => import('@/components/stock/StockList.vue'),
                name: 'StockList',
                meta: { title: '库存列表查询', icon: 'index' }
            },
            {
                path: 'stockInList',
                component: () => import('@/components/stock/StockInList.vue'),
                name: 'StockInList',
                meta: { title: '采购单管理', icon: 'index' }
            },
            {
                path: 'stockOutList',
                component: () => import('@/components/stock/StockOutList.vue'),
                name: 'StockOutList',
                meta: { title: '供应商管理', icon: 'index' }
            },
            {
                path: 'stockDetailList',
                component: () => import('@/components/stock/StockDetailList.vue'),
                name: 'StockDetailList',
                meta: { title: '详细查询1', icon: 'index' }
            },
            {
                path: 'stockInDetailList',
                component: () => import('@/components/stock/StockInDetailList.vue'),
                name: 'StockInDetailList',
                meta: { title: '详细查询2', icon: 'index' }
            },
            {
                path: 'stockOutDetailList',
                component: () => import('@/components/stock/StockOutDetailList.vue'),
                name: 'StockOutDetailList',
                meta: { title: '详细查询3', icon: 'index' }
            },
            {
                path: 'stockBadList',
                component: () => import('@/components/stock/StockBadList.vue'),
                name: 'StockBadList',
                meta: { title: '报损订单查询', icon: 'index' }
            },
        ]
    },
    {
        path: '/product',   //  商品管理
        component: Layout,
        hidden: true,
        redirect: 'noredirect',
        children: [
            {
                path: 'productList',
                component: () => import('@/components/product/ProductList.vue'),
                name: 'ProductList',
                meta: { title: '商品列表', icon: 'index' }
            },
            {
                path: 'productTypes',
                component: () => import('@/components/product/ProductTypes.vue'),
                name: 'ProductTypes',
                meta: { title: '商品类别', icon: 'index' }
            },
        ]
    },
    {
        path: '/sell',   //  销售管理
        component: Layout,
        hidden: true,
        redirect: 'noredirect',
        children: [
            {
                path: 'SellList',
                component: () => import('@/components/sell/SellList.vue'),
                name: 'SellList',
                meta: { title: '销售列表查询', icon: 'index' }
            },
            {
                path: 'sellReturnDetailList',
                component: () => import('@/components/sell/SellReturnDetailList.vue'),
                name: 'SellReturnDetailList',
                meta: { title: '销售退单查询', icon: 'index' }
            },
        ]
    },
]
/*动态路由*/
export const dynamicRoutes = []
